//
//  PasswordManager.h
//  CBT
//
//  Created by Mr.Zhang on 2018/11/29.
//  Copyright © 2018 Mr.Zhang. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^manager_result_block)(id data, HttpRequestResult result,NSString *msg);

NS_ASSUME_NONNULL_BEGIN

@interface PasswordManager : NSObject

/** 登录密码修改 */
+(void)loginPwdChangeWithID:(NSString *)ID code:(NSString *)code pwd:(NSString *)pwd areaStr:(NSString *)areaStr block:(manager_result_block)block;

/** 支付密码修改 */
+(void)payMentPwdChangeWithID:(NSString *)ID code:(NSString *)code pwd:(NSString *)pwd areaStr:(NSString *)areaStr block:(manager_result_block)block;

/** 设置支付密码 */
+(void)payMentPwdChangeWithPwd:(NSString *)pwd lastPwd:(NSString *)lastpwd block:(manager_result_block)block;

/**
 发送手机、邮箱验证码

 @param ID ID
 @param phone 是否手机号
 @param type 注册新用户为1，修改密码、找回密码、设置支付密码为2
 @param block 成功回调
 */
+(void)sendPhoneAndEmailCodeWithID:(NSString *)ID isPhone:(BOOL)phone type:(NSString *)type areaStr:(NSString *)areaStr block:(manager_result_block)block;

@end

NS_ASSUME_NONNULL_END
